doctype 5
html
	head
		title= title
		link(rel='stylesheet', href='/stylesheets/style.css')
	body
		div
			header=title
			nav
				span
					a(title='主页',href='/') home
				if user
					span
						|用户名：
						=user.name
						a(title='发表',href='/post') post
					span
						a(title='登出',href='/logout') logout
				else
					span
						a(title='登录',href='/login') login
					span
						a(title='注册',href='/reg') register
			if success
				h1=success
			if error
				h1=error
			block content